package emotion_codesoe_com

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type OsMenuRouter struct {
}

// InitOsMenuRouter 初始化 osMenu表 路由信息
func (s *OsMenuRouter) InitOsMenuRouter(Router *gin.RouterGroup, RouterPub *gin.RouterGroup) {
	osMenuRouter := Router.Group("osMenu").Use(middleware.OperationRecord())
	osMenuRouterWithoutRecord := Router.Group("osMenu")
	apiPublicOsMenuRouterWithoutRecord := RouterPub.Group("osMenu")
	var osMenuApi = v1.ApiGroupApp.Emotion_codesoe_comApiGroup.OsMenuApi
	{
		osMenuRouter.POST("createOsMenu", osMenuApi.CreateOsMenu)             // 新建osMenu表
		osMenuRouter.DELETE("deleteOsMenu", osMenuApi.DeleteOsMenu)           // 删除osMenu表
		osMenuRouter.DELETE("deleteOsMenuByIds", osMenuApi.DeleteOsMenuByIds) // 批量删除osMenu表
		osMenuRouter.PUT("updateOsMenu", osMenuApi.UpdateOsMenu)              // 更新osMenu表
	}
	{
		osMenuRouterWithoutRecord.GET("findOsMenu", osMenuApi.FindOsMenu)               // 根据ID获取osMenu表
		osMenuRouterWithoutRecord.GET("getOsMenuListPage", osMenuApi.GetOsMenuListPage) // 获取osMenu表列表

	}

	{
		apiPublicOsMenuRouterWithoutRecord.GET("getOsMenuList", osMenuApi.GetOsMenuList) // 根据ID获取osMenu表
	}
}
